<?php
	function foo(&$v, $k, $kname) {
	
		$v = array_combine($kname, array_slice($v, 1, -1));
		return $v;
	}